/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package seres;

public class  Terricola extends Guerrero {
	private static int total;
	//private String soy;
	
	public Terricola (String soy){
		super(soy);
		soy = soy;
		total++;
	}
	
	public static int obtenerTotal(){
		return total;
	}
	
        @Override
	public void recibeDisparo(int i){
		if (vivo && objetivo == i){
			vivo = false;
			total--;
			System.out.println(soy + " muerto por disparo n " + i);
		}
	}
}